package com.shj.em.base.support;

public enum ResCode {
    UNKNOWN("-1", "操作失败"),
    SUCCESS("200", ""),//成功
    FAIL("500", "失败"),//失败
    LOGIN_REQUIRED("401", "登陆失败，密码或用户名错误"),//用户验证出错
    PERMISSION_REQUIRED("403", "权限不足，资源不可用"), //用户权限错误

    UNAUTH("1000", "未授权");

    private String code;
    private String msg;

    ResCode(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    ResCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
